(function() {
    'use strict';

    angular
        .module('milkbeeApp')
        .controller('FollowController', FollowController);

    FollowController.$inject = ['$scope', '$state', 'Follow'];

    function FollowController ($scope, $state, Follow) {
        var vm = this;

        vm.follows = [];

        loadAll();

        function loadAll() {
            Follow.query(function(result) {
                vm.follows = result;
                vm.searchQuery = null;
            });
        }
    }
})();
